import request from "@/utils/request";

// 登录接口
export const login = (data) => {
  return request({
    url: "/login",
    method: "post",
    data,
  });
};

// 生成验证码图片
export const loginCode = () => {
  return request({
    url: "/captcha?type=login",
    responseType: "arraybuffer",
  });
};
